package com.setup.trac.pojo.condition;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.setup.trac.util.SQLCondition;

public class FindUtentiByProfilo implements SQLCondition {

	private BigDecimal idProfilo;

	public FindUtentiByProfilo(BigDecimal idProfilo) {
		this.idProfilo=idProfilo;
	}

	public Criterion create(Object... params) {
		Criterion c = Restrictions.eq("profilo.idProfilo", idProfilo);
		return c;
	}

}
